#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
typedef int STDataType;

class Stack
{
public:
	Stack(int n = 4)
	{
		_a = (STDataType*)malloc(sizeof(STDataType) * n);
		if (_a = nullptr)
		{
			perror("malloc fail");

			return;
			_capacity = n;
			_top = 0;
		}
	}
	~Stack()
	{
		free(_a);
		_a=nullptr;
		_capacity = 0;
		_top = 0;
	}
private:
	STDataType* _a;
	int _capacity;
	int _top;
};

class Myqueque
{
public:

private:
	Stack pushst;
	Stack popst;
};

class Date
{
public:
	Date()
	{
		_year = 1;
		_month = 1;
		_day = 1;
	}
	Date(int year, int month, int day)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void Print()
	{
		cout << _year << "/" << _month << "/" <<_day << endl;
	}
private:
	int _year;
	int _month;
	int _day;
};

int main()
{
	/*Date d1;
	d1.Print();
	Date d2(2024, 7, 10);
	d2.Print();*/
	Myqueque mq;
	Stack st;
}